package com.hiof.moraa.server.service.model;

import java.util.Date;

/**
 *
 * @author Bergy
 */
public class HealthFeed extends Feed {

    private String attendantCode;
    private double heartRate;
    private String status;
    private int index; //use for drawing graph

    public HealthFeed(int userId, String username, String fullname, String profilePicture, Date timestamp, String attendantCode, double heartRate, String status) {
        super(userId, username, fullname, profilePicture, timestamp);
        this.attendantCode = attendantCode;
        this.heartRate = heartRate;
        this.status = status;
    }

    public String getAttendantCode() {
        return attendantCode;
    }

    public double getHeartRate(){
        return  heartRate;
    }

    public String getStatus() {
        return status;
    }

    @Override
    public String getDescription() {
        return "Heart Rate: " + heartRate;
    }

    @Override
    public String getType() {
        return "HealthFeed";
    }

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }
}
